<table>
    <thead>
    <tr>

        <g:sortableColumn property="ecNumber"
                          title="${message(code: 'legalCase.ecNumber.label', default: 'EC Number')}"/>


        <g:sortableColumn property="phase" title="${message(code: 'legalCase.phase.label', default: 'Phase')}"/>

        <g:sortableColumn property="decisionDate"
                          title="${message(code: 'legalCase.decisionDate.label', default: 'Decision Date')}"/>

        <g:sortableColumn property="notificationDate"
                          title="${message(code: 'legalCase.notificationDate.label', default: 'Notification Date')}"/>

        <th>Competition Concern</th>
    </tr>
    </thead>
    <tbody>
    <g:each in="${legalCaseInstanceList}" status="i" var="legalCaseInstance">
        <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

            <td>
                <g:link action='show'
                        id="${legalCaseInstance.id}">M.${legalCaseInstance.ecNumber}</g:link>
            </td>

            <td>${fieldValue(bean: legalCaseInstance, field: "phase")}</td>

            <td>${fieldValue(bean: legalCaseInstance, field: "decisionDate")}</td>

            <td>${fieldValue(bean: legalCaseInstance, field: "notificationDate")}</td>

            <td>${fieldValue(bean: legalCaseInstance, field: "competitionConcern")}</td>

        </tr>
    </g:each>
    </tbody>
</table>